package com.bjpowernode.app.controller;
import com.bjpowernode.app.dao.InfoDao;
import com.bjpowernode.app.entiey.Info;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@RestController
public class InfoController {
    @Autowired
    InfoDao infoDao;
    @GetMapping("/info")
    public List<Info> getAll() {
        return infoDao.getAll();

    }
}
